package server.core.dao;

public final class DaoFactory {
public static enum daoType{
	MEMORY,
	FILE,
	DATABASE
}
public static Dao getDao(daoType type){
	if(daoType.FILE==type)
		return FileDAO.getInstance();
	else if(daoType.DATABASE==type)
		return DataBaseDAO.ORCL;
	else
		return MemoryDAO.INSTANCE;
}
}
